import request from '@/utils/request'

// 查询等级配置列表
export function listBMineEarnConfig(query) {
  return request({
    url: '/api/bMineEarnConfig/list',
    method: 'get',
    params: query
  })
}

// 查询等级配置详细
export function getBMineEarnConfig(id) {
  return request({
    url: '/api/bMineEarnConfig/' + id,
    method: 'get'
  })
}

// 新增等级配置
export function addBMineEarnConfig(data) {
  return request({
    url: '/api/bMineEarnConfig',
    method: 'post',
    data: data
  })
}

// 修改等级配置
export function updateBMineEarnConfig(data) {
  return request({
    url: '/api/bMineEarnConfig',
    method: 'put',
    data: data
  })
}

// 删除等级配置
export function delBMineEarnConfig(id) {
  return request({
    url: '/api/bMineEarnConfig/' + id,
    method: 'delete'
  })
}
